<?php
error_reporting(E_ALL|E_STRICT);
$curl = curl_init();
$data = file_get_contents('php://input');
curl_setopt($curl, CURLOPT_INFILESIZE, strlen($data)); 
curl_setopt($curl, CURLOPT_URL, "http://api06.dev.openstreetmap.org/api/0.6/node/create");
curl_setopt($curl ,CURLOPT_HTTPHEADER,array('Authorization: ' .  $_SERVER['HTTP_AUTHORIZATION']));
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT'); 
curl_exec($curl);
curl_close($curl);
die;
